package com.geektimes.jolokia;

public class Configuration implements ConfigurationMBean {

    private String name;

    private String value;

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public void print() {
        Config config = new Config();
        config.setName(this.name);
        config.setValue(this.value);
        System.out.println(config.toString());
    }
}
